package com.boilerCloud.service.sys.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.boilerCloud.dao.sys.impl.DictionaryDao;
import com.boilerCloud.dto.HzlqswPage;
import com.boilerCloud.dto.sys.Dictionary;
import com.boilerCloud.dto.sys.DictionaryTypeInfo;
import com.boilerCloud.service.sys.IDictionaryService;
@Service
public class DictionaryServiceImpl  implements IDictionaryService{

	@Resource
	private DictionaryDao dao;
	@Override
	public void qryList(Dictionary model, HzlqswPage<Dictionary> page)  throws Exception{
		dao.qryList(model,page);
		
	}

	@Override
	public void save(Dictionary model) throws Exception {
		dao.save(model);
		
	}

	@Override
	public void edit(Dictionary model) {
		dao.edit(model);
		
	}

	@Override
	public void del(int id) {
		dao.del(id);
		
	}

	@Override
	public List<Dictionary> getDictionaryList(int type) throws Exception {
		// TODO Auto-generated method stub
		return dao.getDictionaryList(type);
	}

	/**
	 * <p>Title: qryDictionaryById</p>
	 * <p>Description:(一句话阐述):  根据id查询字典信息
	 * </p>
	 * @param id
	 * @return
	 * @throws Exception
	 * @author Ran_cc 
	 * @date 2018年5月24日
	 */
	@Override
	public Dictionary qryDictionaryById(int id) throws Exception {
		
		return dao.qryDictionaryById(id);
	}

	/**
	 * <p>Title: qryDictionaryByCode</p>
	 * <p>Description:(一句话阐述): 根据code查询字典信息
	 * </p>
	 * @param code
	 * @return
	 * @author Ran_cc 
	 * @date 2018年5月24日
	 */
	@Override
	public Dictionary qryDictionaryByCode( Dictionary code ) throws Exception {
		// TODO Auto-generated method stub
		return dao.qryDictionaryByCode(code);
	}

	/**
	 * <p>
	 * Title: getDictionary2Type
	 * </p>
	 * <p>
	 * Description:(一句话阐述):
	 * </p>
	 * 
	 * @param dicModel
	 * @return
	 * @throws Exception
	 * @author Ran_cc
	 * @date 2018年6月3日
	 */
	@Override
	public List<DictionaryTypeInfo> getDictionary2Type( DictionaryTypeInfo dicModel ) throws Exception {
		// TODO Auto-generated method stub
		return dao.getDictionary2Type(dicModel);
	}
	

}
